package mp2013.gardanne.eau;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

public class ActivityTab extends TabActivity {

	private TabHost tabHost;
	private TabSpec tabSpec;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		//Intent intent = new Intent(this, ShowTab.class);
		tabHost = getTabHost();

		

		// tabSpec = tabHost.newTabSpec("un").setIndicator("Un", 
		//getResources().getDrawable(R.drawable.icon)).setContent(intent);
		tabSpec = tabHost.newTabSpec("un").setIndicator("Carte",getResources().getDrawable(R.drawable.carte)).setContent(new Intent("android.intent.action.MAP"));
		tabHost.addTab(tabSpec);

		tabSpec = tabHost.newTabSpec("deux").setIndicator("Sites",getResources().getDrawable(R.drawable.sites)).setContent(new Intent("android.intent.action.SITES"));
		tabHost.addTab(tabSpec);
		
		//intent.putExtra("valeur", "Parcours");

		tabSpec = tabHost.newTabSpec("trois").setIndicator("Parcours",getResources().getDrawable(R.drawable.parcours)).setContent(new Intent("android.intent.action.PARCOURS"));
		tabHost.addTab(tabSpec);
	}
}
